# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-flask-openid
_pkgname=Flask-OpenID
pkgver=1.2.5
pkgrel=3
pkgdesc='OpenID support for Flask.'
url='https://pypi.org/project/flask-openid/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-flask' 'python2-openid')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('20486b3dc8364842f36bfeb2b8501c75a36ec7a16ecb43e826d67ecb2c91846be4e29f1f0bf616a85c5a264446ddcb7dfa52019c9809e8f6be77822e9f69b003')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

